//页面的所有请求
import server from "@/untial/api"

//获取页面数据
export  function getcmtApi(params){
    return server({
        url:"/chengmengting",
        method:"get",
        params:params
    })
}

//删除单个请求的api
export function deleteHomeApi(data){
    return server({
        url:'/deleteByid',
        method:'post',
        data:data
    })
}



//新增
export function getaddcmtApi(data){
    return server({
        url:'addChengmengting',
        method:'post',
        data
    })
}

// 编辑
export function geteditcmtApi(data){
    return server({
        url:'editChengmengting',
        method:'post',
        data
    })
}


// export let chenqgetall = params => server({
//     url: "/chenqgetall",
//     methods: "get",
//     params
// })

// export default getcmtApi